export default defineAppConfig({
  pages: [
    'pages/index/index',
    'pages/shoppage/index',
    'pages/cartpage/index',
    'pages/mypage/index',
  ],
  subPackages: [
    {
      'root': 'packageA',
      'pages': [
        'pages/productDetail/index',
        'pages/confirmOrder/index',
        'pages/addressList/index',
        'pages/addCoupon/index',
        'pages/writeAddress/index',
        'pages/confirmPay/index',
        'pages/orderList/index',
        'pages/orderDetail/index',
        'pages/selfInfo/index',
        'pages/feedback/index',
        'pages/integral/index',
        'pages/integralDetail/index',
        'pages/couponList/index',
        'pages/recharge/index',
        'pages/collectPage/index',
        'pages/useGoods/index',
        'pages/invite/index',
        'pages/rewards/index',
        'pages/changeIntegral/index',
        'pages/petID/index',
        'pages/petIDList/index',
        'pages/promotion/index',
        'pages/active/index',
        'pages/question/index',
        'pages/goods/index',
        // 'pages/finStatistic/index',
        'pages/editGoods/index',
        'pages/addStore/index',
        'pages/bleConnect/bleConnect',
        'pages/receipt/receipt',
        'pages/home/home',
        'pages/agree/index',
      ]
    }
  ],
  window: {
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#3F8EE3',
    navigationBarTitleText: 'WeChat',
    navigationBarTextStyle: 'white',
    enablePullDownRefresh: true,
    onReachBottomDistance: 50,
  },
  plugins: {

  },
  permission: {
    'scope.userLocation': {
      desc: '后台将实时获取你的位置信息'
    },
    // 'scope.userLocationBackground': {
    //   "desc": "获取您的后台位置"
    // },
  },
  requiredBackgroundModes: ["audio", "location"],
  requiredPrivateInfos: ["getLocation", "onLocationChange", "startLocationUpdate", "startLocationUpdateBackground"],
})
